package com.itheima.d4_abstract;

public abstract class A {

    private String name;
    public static String scoolName;
    //抽象方法，必须用abstract修饰，只有方法签名，没有方法体
    public abstract void m();

    public A(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static String getScoolName() {
        return scoolName;
    }

    public static void setScoolName(String scoolName) {
        A.scoolName = scoolName;
    }
}
